import request from '#/utils/requestAbort';

export async function getAllFieldList(params) {
  return request('/clearing-settlement/spotExpensesSummary/getAllFieldList', {
    method: 'POST',
    data: params,
  });
}

export async function getSpotExpensesSummaryList(params) {
  return request('/clearing-settlement/spotExpensesSummary/getSpotExpensesSummaryList', {
    method: 'POST',
    data: params,
  });
}

export async function getSpotMonthLabelList(params) {
  return request('/clearing-settlement/spotExpensesSummary/getSpotMonthLabelList', {
    method: 'POST',
    data: params,
  });
}

export async function updateSpotMonthLabel(params) {
  return request('/clearing-settlement/spotExpensesSummary/updateSpotMonthLabel', {
    method: 'POST',
    data: params,
  });
}
// 省份-交易中心-场站（数据权限）
export async function queryMarketList(menuCode) {
  return request(`/power/dataPower/common/${menuCode}/t_station`, {
    method: 'GET',
  });
}
